﻿using System;
using System.Diagnostics;
using Reflector.CodeModel;

namespace CallGraphExtractor.CecilAdapter
{
    [DebuggerDisplay("{Name}")]
    class PropertyDeclaration : MemberDeclaration, IPropertyDeclaration
    {
        #region Lifecycle

        public PropertyDeclaration(Mono.Cecil.PropertyDefinition propertyDefinition)
            : base(propertyDefinition) { }

        #endregion Lifecycle

        #region Methods

        public override string ToString()
        {
            return base.ToString().Replace("()", "");
        }

        #endregion Methods

        #region IPropertyDeclaration Members

        public IMethodReference GetMethod
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public bool HasThis
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IExpression Initializer
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public bool RuntimeSpecialName
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IMethodReference SetMethod
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public bool SpecialName
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        #endregion

        #region IPropertyReference Members

        public IPropertyReference GenericProperty
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IParameterDeclarationCollection Parameters
        {
            get { throw new NotImplementedException(); }
        }

        public IType PropertyType
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IPropertyDeclaration Resolve()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
